PreviousNextTracker indexSee it online !

(304/308) 1905 - XML File parsing: java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: c:\tmp\t.rng

Submitted bgobbi - 2018-08-31 02:32:30.351000 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2018-08-31 02:36:03.394000
bgobbi

When opening the attached t.xml file in a directory that also contains the required xsd files (attached) I get the following error message:
Illegal character in opaque part at index 2: c:\tmp\t.rng
Note: only relative paths are used to adress the xsd files in t.xml. The pathname mentioned in the error message is generated internally in jedit or sidekick, I am not sure which.
I think this might be a windows only issues due to problems with creating an URI from a filename.

This was with:
jedit 5.5.0
sidekick 1.8
XML 3.0.6
Xerxes Plugin 2.11.0_1

The stack trace from the activity.log is below.
Help would be very much appreciated.
Alberto


7:24:38 PM [AWT-EventQueue-0] [debug] EditBus: EditorStarted[source=null]
7:24:38 PM [AWT-EventQueue-0] [message] jEdit: Startup complete: 3429 ms
7:24:38 PM [AWT-EventQueue-0] [debug] EditBus: PluginUpdate[what=ACTIVATED,exit=false,version=2.3,source=C:\Users\albertgo\AppData\Roaming\jEdit\jars\ErrorList.jar,class=errorlist.ErrorListPlugin]
7:24:38 PM [AWT-EventQueue-0] [debug] EditBus: PluginUpdate[what=ACTIVATED,exit=false,version=3.0.6,source=C:\Users\albertgo\AppData\Roaming\jEdit\jars\XML.jar,class=xml.XmlPlugin]
7:24:38 PM [AWT-EventQueue-0] [debug] EditBus: ViewUpdate[what=VIEW_ACTIVATED,source=org.gjt.sp.jedit.View[active]]
7:24:38 PM [AWT-EventQueue-0] [debug] JEditTextArea: InputMethodSupport is activated
7:24:38 PM [SwingWorker-pool-1-thread-1] [warning] SchemaMapping: error looking for matching schema for c:\tmp\t.xml, invalid url: Illegal character in opaque part at index 2: c:\tmp\t.xml
7:24:38 PM [SwingWorker-pool-1-thread-1] [warning] SchemaMapping: error looking for matching schema for c:\tmp\t.xml, invalid url: Illegal character in opaque part at index 2: c:\tmp\t.xml
7:24:38 PM [SwingWorker-pool-1-thread-1] [warning] SchemaMapping: error looking for matching schema for c:\tmp\t.xml, invalid url: Illegal character in opaque part at index 2: c:\tmp\t.xml
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: RuntimeException parsing
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: c:\tmp\t.rng
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.net.URI.create(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.net.URI.resolve(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.SchemaMapping$TransformURI.getSchemaForDocument(SchemaMapping.java:544)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.SchemaMapping.getSchemaForDocument(SchemaMapping.java:260)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.SchemaMapping$IncludeMapping.getSchemaForDocument(SchemaMapping.java:1263)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.SchemaMapping.getSchemaForDocument(SchemaMapping.java:260)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.SchemaAutoLoader.startElement(SchemaAutoLoader.java:267)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.EntityMgrFixerConfiguration$EntityMgrFixer.startElement(EntityMgrFixerConfiguration.java:146)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfterName(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.SchemaAutoLoader.parse(SchemaAutoLoader.java:210)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at xml.parser.XercesParserImpl.parse(XercesParserImpl.java:231)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at sidekick.SideKick$ParseRequestWorker.doInBackground(SideKick.java:550)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at sidekick.SideKick$ParseRequestWorker.doInBackground(SideKick.java:526)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at javax.swing.SwingWorker$1.call(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.util.concurrent.FutureTask.run(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at javax.swing.SwingWorker.run(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.lang.Thread.run(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: c:\tmp\t.rng
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.net.URI$Parser.fail(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.net.URI$Parser.checkChars(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.net.URI$Parser.parse(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: at java.net.URI.<init>(Unknown Source)
7:24:38 PM [SwingWorker-pool-1-thread-1] [error] XercesParserImpl: ... 30 more
7:24:38 PM [SwingWorker-pool-1-thread-1] [notice] XercesParserImpl: parsing has taken 651ms
7:24:38 PM [AWT-EventQueue-0] [debug] SideKickParsedData: Setting parsed data of org.gjt.sp.jedit.View[active] to xml.XmlParsedData@2b39b42b

t.xml (217B)

2018-08-31 02:37:46.545000
bgobbi

Added attachments.

RDFFileParser.xsd (1.2Kio)

XMLFileParser.xsd (1.5Kio)

2018-08-31 02:40:16.565000
bgobbi

All attachments together now. Sorry for the confusion.

DataLoader.xsd (14.1Kio)

RDFFileParser.xsd (1.2Kio)

XMLFileParser.xsd (1.5Kio)

t.xml (217B)